package com.demo.boss.common.constants.type;

import com.demo.boss.common.constants.SysConst;
import com.demo.boss.common.enums.SysCode;
import lombok.Data;

@Data
public class SysException extends RuntimeException{
    private SysCode sysCode;

    public SysException(SysCode sysCode) {
        super(sysCode.getText());
        this.sysCode = sysCode;
    }

    public SysException(String message) {
        super(message);
    }
    public SysException() {
    }

}
